using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SystemsUI : MonoBehaviour
{
    [SerializeField] private Button Character;
    [SerializeField] private Button Backpack;
    [SerializeField] private Button Setting;
    [SerializeField] private UIBase CharacterUI;
    [SerializeField] private UIBase BackpackUI; 
    [SerializeField] private UIBase SettingUI;

    // Start is called before the first frame update
    void Start()
    {
        Character.onClick.AddListener(OnClickCharacter);
        Backpack.onClick.AddListener(OnClickBackpack);
        Setting.onClick.AddListener(OnClickSetting);
    }


    public void OnClickCharacter()
    {
        CharacterUI.ShowMe();
        AudioManager.Instance.PlaySound((int)E_SoundType.Click);
    }

    public void OnClickBackpack()
    {
        BackpackUI.ShowMe();
        AudioManager.Instance.PlaySound((int)E_SoundType.Click);
    }

    public void OnClickSetting()
    {
        SettingUI.ShowMe();
        AudioManager.Instance.PlaySound((int)E_SoundType.Click);
    }

    
}
